package com.bestcem.xm.common.core.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * 最后更新时间: 2021年6月4日15:05:55
 * @desc 业务异常
 * @date 2021-05-21
 */
@Getter
@Setter
public class BusinessException extends BaseRuntimeException {

    private Object data;


    public BusinessException(String desc) {
        super(desc);
    }

    public BusinessException(String code, String desc) {
        super(code, desc);
    }

    public BusinessException(String code, String desc, Object data) {
        super(code, desc);
        this.data = data;
    }

    public BusinessException(String desc, Throwable e) {
        super(desc, e);
    }

}